﻿{% extends "gma/base.html" %}
{% load mytag %}

<!-- CONTENT
  =====================================================================-->

{% block content %}

    <div class="page__hd">
        <h1 class="page__title">
            <i class="fa fa-book my-page-title-icon"> </i>
        </h1>
        <p class="page__desc"> 屏蔽词列表。 </p>
        <p class="page__desc"> 当前版本为 v1.1, 共包含 3655 个屏蔽词。 </p>
    </div>

    <div class="page__bd">
        <div class="weui-panel weui-panel_access">
            <div class="weui-panel__bd">
                {% for record in data %}
                <div class="weui-media-box weui-media-box_appmsg">
                    <div class="weui-media-box__hd">
                        <h4> {{ forloop.counter }}. </h4>
                    </div>
                    <div class="weui-media-box__bd">
                        <h4 class="weui-media-box__title">{{ record.word }}</h4>
                    </div>

                    <div class="weui-cell__ft">
                        <label for="switch_busy_mode" class="weui-switch-cp">
                        {% if record.enabled %}
                            <input id="switch_busy_mode" class="weui-switch-cp__input" type="checkbox" checked="checked" onclick="javascript:alert('权限不足！')" />
                        {% else %}
                            <input id="switch_busy_mode" class="weui-switch-cp__input" type="checkbox" onclick="javascript:alert('权限不足！')" />
                        {% endif %}
                            <div class="weui-switch-cp__box"></div>
                        </label>
                    </div>

                </div>
                {% endfor %}

                <div class="weui-media-box weui-media-box_text">
                    <ul class="weui-media-box__info">
                    </ul>
                </div>
            </div>
        </div>
    </div>

    <div class="page__ft">
        <a href="{% url 'gma:home' %}">
            <span class="bottom-logo">
               HiBao
           </span>
        </a>
    </div>

{% endblock content %}


<!-- SCRIPT
  =====================================================================-->

{% block extra_js %}
{% endblock extra_js %}